<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0029)http://amix.dk/vim/vimrc.html -->
<HTML 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>~/vim_local/vimrc.html</TITLE>
<META content="MSHTML 6.00.5730.13" name=GENERATOR>
<META http-equiv=content-type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>.LineNr {
	COLOR: #b0b0b0; BACKGROUND-COLOR: #202020
}
.Number {
	COLOR: #e0c060; BACKGROUND-COLOR: #202020
}
.Normal {
	COLOR: #d0d0d0; BACKGROUND-COLOR: #202020
}
.Identifier {
	COLOR: #f0c0f0; BACKGROUND-COLOR: #202020
}
.Special {
	COLOR: #f6bf54; BACKGROUND-COLOR: #202020
}
.Constant {
	COLOR: #80c0e0; BACKGROUND-COLOR: #202020
}
.Type {
	COLOR: #b0d0f0; BACKGROUND-COLOR: #202020
}
.PreProc {
	COLOR: #60f080; BACKGROUND-COLOR: #202020
}
.Statement {
	COLOR: #c0d8f8; BACKGROUND-COLOR: #202020
}
PRE {
	COLOR: #d0d0d0; BACKGROUND-COLOR: #202020
}
BODY {
	COLOR: #d0d0d0; BACKGROUND-COLOR: #202020
}
.Comment {
	COLOR: #d0d090; BACKGROUND-COLOR: #202020
}
</STYLE>
</HEAD>
<BODY>
<P><PRE><SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"          _</SPAN>
<SPAN class=Comment>"      __ | \</SPAN>
<SPAN class=Comment>"     /   | /</SPAN>
<SPAN class=Comment>"     \__ | \</SPAN>
<SPAN class=Comment>" by Amix - <A href="http://amix.dk/">http://amix.dk/</A></SPAN>
<SPAN class=Comment>"</SPAN>
<SPAN class=Comment>"</SPAN> <SPAN class=PreProc>Maintainer:</SPAN><SPAN class=Comment> Amir Salihefendic &lt;amix3k at gmail.com&gt;</SPAN>
<SPAN class=Comment>"</SPAN> <SPAN class=PreProc>Version:</SPAN><SPAN class=Comment> 2.7</SPAN>
<SPAN class=Comment>"</SPAN> <SPAN class=PreProc>Last Change:</SPAN><SPAN class=Comment> 12/10/06 00:09:21</SPAN>
<SPAN class=Comment>"</SPAN>
<SPAN class=Comment>"</SPAN> <SPAN class=PreProc>Sections:</SPAN>
<SPAN class=Comment>" ----------------------</SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#General">General</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Colors and Fonts">Colors and Fonts</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Fileformats">Fileformats</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#VIM userinterface">VIM userinterface</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Statusline">Statusline</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Visual">Visual</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Moving around and tabs">Moving around and tabs</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#General Autocommands">General Autocommands</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Parenthesis/bracket expanding">Parenthesis/bracket expanding</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#General Abbrevs">General Abbrevs</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Editing mappings etc.">Editing mappings etc.</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Command-line config">Command-line config</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Buffer realted">Buffer realted</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Files and backups">Files and backups</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Folding">Folding</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Text options">Text options</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Indent">Indent</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Spell checking">Spell checking</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Plugin configuration">Plugin configuration</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Yank ring">Yank ring</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#File explorer">File explorer</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Minibuffer">Minibuffer</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Tag list (ctags) - not used">Tag list (ctags) - not used</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#LaTeX Suite things">LaTeX Suite things</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Filetype generic">Filetype generic</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Todo">Todo</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#VIM">VIM</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#HTML related">HTML related</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Ruby &amp; PHP section">Ruby &amp; PHP section</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Python section">Python section</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Cheetah section">Cheetah section</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Vim section">Vim section</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Java section">Java section</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#JavaScript section">JavaScript section</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#C mappings">C mappings</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#SML">SML</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Scheme bindings">Scheme bindings</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Snippets">Snippets</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Python">Python</A></SPAN>
<SPAN class=Comment>" &nbsp;&nbsp; <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#javaScript">javaScript</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Cope">Cope</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#MISC">MISC</A></SPAN>
<SPAN class=Comment>"</SPAN>
<SPAN class=Comment>"</SPAN>  <SPAN class=PreProc>Tip:</SPAN>
<SPAN class=Comment>"   If you find anything that you can't understand than do this:</SPAN>
<SPAN class=Comment>"   help keyword OR helpgrep keywords</SPAN>
<SPAN class=Comment>"</SPAN>  <SPAN class=PreProc>Example:</SPAN>
<SPAN class=Comment>"   Go into command-line mode and type helpgrep nocompatible, ie.</SPAN>
<SPAN class=Comment>"   :helpgrep nocompatible</SPAN>
<SPAN class=Comment>"   then press &lt;leader&gt;c to see the results, or :botright cw</SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>

<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name=General>General</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"Get out of VI's compatible mode..</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>nocompatible</SPAN>

<SPAN class=Comment>"Sets how many lines of history VIM har to remember</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>history</SPAN>=400

<SPAN class=Comment>"Enable filetype plugin</SPAN>
<SPAN class=Statement>filetype</SPAN> <SPAN class=Type>plugin</SPAN> <SPAN class=Type>on</SPAN>
<SPAN class=Statement>filetype</SPAN> <SPAN class=Type>indent</SPAN> <SPAN class=Type>on</SPAN>

<SPAN class=Comment>"Set to auto read when a file is changed from the outside</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>autoread</SPAN>

<SPAN class=Comment>"Have the mouse enabled all the time:</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>mouse</SPAN>=a

<SPAN class=Comment>"Set mapleader</SPAN>
<SPAN class=Statement>let</SPAN> mapleader <SPAN class=Statement>=</SPAN> <SPAN class=Constant>","</SPAN>
<SPAN class=Statement>let</SPAN> g:<SPAN class=Statement>map</SPAN>leader = ","

<SPAN class=Comment>"Fast saving</SPAN>
<SPAN class=Statement>nmap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>w :w!<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>nmap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>f :find<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Comment>"Fast reloading of the .vimrc</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>s :source ~/vim_local/vimrc<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Comment>"Fast editing of .vimrc</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>e :e! ~/vim_local/vimrc<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Comment>"When .vimrc is edited, reload it</SPAN>
<SPAN class=Statement>autocmd</SPAN>! <SPAN class=Type>bufwritepost</SPAN> vimrc <SPAN class=Statement>source</SPAN> ~/vim_local/vimrc


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="Colors and Fonts">Colors and Fonts</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"Enable syntax hl</SPAN>
<SPAN class=Statement>syntax</SPAN> <SPAN class=Type>enable</SPAN>

<SPAN class=Comment>"Set font to Monaco 10pt</SPAN>
<SPAN class=Statement>if</SPAN> <SPAN class=Normal>MySys</SPAN><SPAN class=Statement>()</SPAN> <SPAN class=Statement>==</SPAN> <SPAN class=Constant>"mac"</SPAN>
  <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>gfn</SPAN>=Bitstream\ Vera\ Sans\ Mono<SPAN class=Statement>:</SPAN>h14
  <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>nomacatsui</SPAN>
  <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>termencoding</SPAN>=macroman
<SPAN class=Statement>elseif</SPAN> <SPAN class=Normal>MySys</SPAN><SPAN class=Statement>()</SPAN> <SPAN class=Statement>==</SPAN> <SPAN class=Constant>"linux"</SPAN>
  <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>gfn</SPAN>=Monospace\ 11
<SPAN class=Statement>endif</SPAN>

<SPAN class=Statement>if</SPAN> <SPAN class=Identifier>has</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"gui_running"</SPAN><SPAN class=Statement>)</SPAN>
  <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>guioptions</SPAN>-=T
  <SPAN class=Statement>let</SPAN> psc_style<SPAN class=Statement>=</SPAN><SPAN class=Constant>'cool'</SPAN>
  <SPAN class=Statement>colorscheme</SPAN> ps_color
<SPAN class=Statement>else</SPAN>
  <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>background</SPAN>=dark
  <SPAN class=Statement>colorscheme</SPAN> zellner
<SPAN class=Statement>endif</SPAN>

<SPAN class=Comment>"Some nice mapping to switch syntax (useful if one mixes different languages in one file)</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>1 :set syntax=cheetah<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>2 :set syntax=xhtml<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>3 :set syntax=python<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>4 :set ft=javascript<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>$ :syntax sync fromstart<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>BufEnter</SPAN> * :<SPAN class=Statement>syntax</SPAN> <SPAN class=Type>sync</SPAN> <SPAN class=Type>fromstart</SPAN>

<SPAN class=Comment>"Highlight current</SPAN>
<SPAN class=Statement>if</SPAN> <SPAN class=Identifier>has</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"gui_running"</SPAN><SPAN class=Statement>)</SPAN>
  <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>cursorline</SPAN>
  <SPAN class=Statement>hi</SPAN> cursorline <SPAN class=Type>guibg</SPAN>=<SPAN class=Number>#333333</SPAN>
  <SPAN class=Statement>hi</SPAN> CursorColumn <SPAN class=Type>guibg</SPAN>=<SPAN class=Number>#333333</SPAN>
<SPAN class=Statement>endif</SPAN>

<SPAN class=Comment>"Omni menu colors</SPAN>
<SPAN class=Statement>hi</SPAN> Pmenu <SPAN class=Type>guibg</SPAN>=<SPAN class=Number>#333333</SPAN>
<SPAN class=Statement>hi</SPAN> PmenuSel <SPAN class=Type>guibg</SPAN>=<SPAN class=Number>#555555</SPAN> <SPAN class=Type>guifg</SPAN>=<SPAN class=Number>#ffffff</SPAN>


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name=Fileformats>Fileformats</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"Favorite filetypes</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>ffs</SPAN>=unix<SPAN class=Statement>,</SPAN>dos<SPAN class=Statement>,</SPAN>mac

<SPAN class=Statement>nmap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>fd :se ff=dos<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>nmap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>fu :se ff=unix<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>



<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="VIM userinterface">VIM userinterface</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"Set 7 lines to the curors - when moving vertical..</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>so</SPAN>=7

<SPAN class=Comment>"Turn on WiLd menu</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>wildmenu</SPAN>

<SPAN class=Comment>"Always show current position</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>ruler</SPAN>

<SPAN class=Comment>"The commandbar is 2 high</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>cmdheight</SPAN>=2

<SPAN class=Comment>"Show line number</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>nu</SPAN>

<SPAN class=Comment>"Do not redraw, when running macros.. lazyredraw</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>lz</SPAN>

<SPAN class=Comment>"Change buffer - without saving</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>hid</SPAN>

<SPAN class=Comment>"Set backspace</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>backspace</SPAN>=eol<SPAN class=Statement>,</SPAN>start<SPAN class=Statement>,</SPAN>indent

<SPAN class=Comment>"Bbackspace and cursor keys wrap to</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>whichwrap</SPAN>+=<SPAN class=Special>&lt;</SPAN><SPAN class=Special>,</SPAN><SPAN class=Special>&gt;</SPAN><SPAN class=Statement>,</SPAN>h<SPAN class=Statement>,</SPAN>l

<SPAN class=Comment>"Ignore case when searching</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>ignorecase</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>incsearch</SPAN>

<SPAN class=Comment>"Set magic on</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>magic</SPAN>

<SPAN class=Comment>"No sound on errors.</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>noerrorbells</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>novisualbell</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>t_vb</SPAN>=

<SPAN class=Comment>"show matching bracets</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>showmatch</SPAN>

<SPAN class=Comment>"How many tenths of a second to blink</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>mat</SPAN>=2

<SPAN class=Comment>"Highlight search things</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>hlsearch</SPAN>

<SPAN class=Comment>  """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>  " <A style="COLOR: #fff" name=Statusline>Statusline</A></SPAN>
<SPAN class=Comment>  """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>  "Always hide the statusline</SPAN>
  <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>laststatus</SPAN>=2

  <SPAN class=Statement>function</SPAN>! CurDir<SPAN class=Statement>()</SPAN>
     <SPAN class=Statement>let</SPAN> curdir <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>substitute</SPAN><SPAN class=Statement>(</SPAN>getcwd<SPAN class=Statement>()</SPAN>, <SPAN class=Constant>'/Users/amir/'</SPAN>, <SPAN class=Constant>"~/"</SPAN>, <SPAN class=Constant>"g"</SPAN><SPAN class=Statement>)</SPAN>
     <SPAN class=Statement>return</SPAN> curdir
  <SPAN class=Statement>endfunction</SPAN>

<SPAN class=Comment>  "Format the statusline</SPAN>
  <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>statusline</SPAN>=\ %F%m%r%h\ %w\ \ CWD<SPAN class=Statement>:</SPAN>\ %r%{CurDir()}%h\ \ \ Line<SPAN class=Statement>:</SPAN>\ %l/%L<SPAN class=Statement>:</SPAN>%c



<SPAN class=Comment>""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name=Visual>Visual</A></SPAN>
<SPAN class=Comment>""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" From an idea by Michael Naumann</SPAN>
<SPAN class=Statement>function</SPAN>! VisualSearch<SPAN class=Statement>(</SPAN>direction<SPAN class=Statement>)</SPAN> range
  <SPAN class=Statement>let</SPAN> l:saved_reg <SPAN class=Statement>=</SPAN> <SPAN class=LineNr>@"</SPAN>
  <SPAN class=Statement>execute</SPAN> <SPAN class=Constant>"normal! vgvy"</SPAN>
  <SPAN class=Statement>let</SPAN> l:pattern <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>escape</SPAN><SPAN class=Statement>(</SPAN><SPAN class=LineNr>@"</SPAN>, <SPAN class=Constant>'\\/.*$^~[]'</SPAN><SPAN class=Statement>)</SPAN>
  <SPAN class=Statement>let</SPAN> l:pattern <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>substitute</SPAN><SPAN class=Statement>(</SPAN>l:pattern, <SPAN class=Constant>"\n$"</SPAN>, <SPAN class=Constant>""</SPAN>, <SPAN class=Constant>""</SPAN><SPAN class=Statement>)</SPAN>
  <SPAN class=Statement>if</SPAN> a:direction <SPAN class=Statement>==</SPAN> <SPAN class=Constant>'b'</SPAN>
    <SPAN class=Statement>execute</SPAN> <SPAN class=Constant>"normal ?"</SPAN> <SPAN class=Statement>.</SPAN> l:pattern <SPAN class=Statement>.</SPAN> <SPAN class=Constant>"^M"</SPAN>
  <SPAN class=Statement>else</SPAN>
    <SPAN class=Statement>execute</SPAN> <SPAN class=Constant>"normal /"</SPAN> <SPAN class=Statement>.</SPAN> l:pattern <SPAN class=Statement>.</SPAN> <SPAN class=Constant>"^M"</SPAN>
  <SPAN class=Statement>endif</SPAN>
  <SPAN class=Statement>let</SPAN> @/ <SPAN class=Statement>=</SPAN> l:pattern
  <SPAN class=Statement>let</SPAN> <SPAN class=LineNr>@"</SPAN> <SPAN class=Statement>=</SPAN> l:saved_reg
<SPAN class=Statement>endfunction</SPAN>

<SPAN class=Comment>"Basically you press * or # to search for the current selection !! Really useful</SPAN>
<SPAN class=Statement>vnoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>silent</SPAN><SPAN class=Special>&gt;</SPAN> * :call VisualSearch('f')<SPAN class=Special>&lt;</SPAN><SPAN class=Special>CR</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>vnoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>silent</SPAN><SPAN class=Special>&gt;</SPAN> # :call VisualSearch('b')<SPAN class=Special>&lt;</SPAN><SPAN class=Special>CR</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="Moving around and tabs">Moving around and tabs</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"Map space to / and c-space to ?</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>space</SPAN><SPAN class=Special>&gt;</SPAN> /
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-space</SPAN><SPAN class=Special>&gt;</SPAN> ?

<SPAN class=Comment>"Smart way to move btw. windows</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-j</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-W</SPAN><SPAN class=Special>&gt;</SPAN>j
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-k</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-W</SPAN><SPAN class=Special>&gt;</SPAN>k
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-h</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-W</SPAN><SPAN class=Special>&gt;</SPAN>h
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-l</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-W</SPAN><SPAN class=Special>&gt;</SPAN>l

<SPAN class=Comment>"Actually, the tab does not switch buffers, but my arrows</SPAN>
<SPAN class=Comment>"Bclose function ca be found in </SPAN><SPAN class=Constant>"Buffer related"</SPAN><SPAN class=Comment> section</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>bd :Bclose<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>down</SPAN><SPAN class=Special>&gt;</SPAN> &lt;leader&gt;bd
<SPAN class=Comment>"Use the arrows to something usefull</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>right</SPAN><SPAN class=Special>&gt;</SPAN> :bn<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>left</SPAN><SPAN class=Special>&gt;</SPAN> :bp<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Comment>"Tab configuration</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>tn :tabnew %<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>te :tabedit
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>tc :tabclose<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>tm :tabmove
<SPAN class=Statement>try</SPAN>
  <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>switchbuf</SPAN>=usetab
  <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>stal</SPAN>=2
<SPAN class=Statement>catch</SPAN>
<SPAN class=Statement>endtry</SPAN>

<SPAN class=Comment>"Moving fast to front, back and 2 sides ;)</SPAN>
<SPAN class=Statement>imap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>m-$</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>$a
<SPAN class=Statement>imap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>m-0</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>0i
<SPAN class=Statement>imap</SPAN> &lt;D-$&gt; <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>$a
<SPAN class=Statement>imap</SPAN> &lt;D-0&gt; <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>0i


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="General Autocommands">General Autocommands</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"Switch to current dir</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>cd :cd %:p:h<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="Parenthesis/bracket expanding">Parenthesis/bracket expanding</A></SPAN>
<SPAN class=Comment>""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Statement>vnoremap</SPAN> $1 <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&gt;a)<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&lt;i(<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Comment>")</SPAN>
<SPAN class=Statement>vnoremap</SPAN> $2 <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&gt;a]<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&lt;i[<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>vnoremap</SPAN> $3 <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&gt;a}<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&lt;i{<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>vnoremap</SPAN> $$ <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&gt;a"<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&lt;i"<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>vnoremap</SPAN> $q <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&gt;a'<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&lt;i'<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>vnoremap</SPAN> $w <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&gt;a"<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&lt;i"<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Comment>"Map auto complete of (, ", ', [</SPAN>
<SPAN class=Statement>inoremap</SPAN> $1 ()<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>:let leavechar=")"<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>i
<SPAN class=Statement>inoremap</SPAN> $2 []<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>:let leavechar="]"<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>i
<SPAN class=Statement>inoremap</SPAN> $4 {<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>o}<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>:let leavechar="}"<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>O
<SPAN class=Statement>inoremap</SPAN> $3 {}<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>:let leavechar="}"<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>i
<SPAN class=Statement>inoremap</SPAN> $q ''<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>:let leavechar="'"<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>i
<SPAN class=Statement>inoremap</SPAN> $w ""<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>:let leavechar='"'<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>i
<SPAN class=Statement>au</SPAN> <SPAN class=Type>BufNewFile</SPAN>,<SPAN class=Type>BufRead</SPAN> *.\(vim\)\@! <SPAN class=Statement>inoremap</SPAN> " ""<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>:let leavechar='"'<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>i
<SPAN class=Statement>au</SPAN> <SPAN class=Type>BufNewFile</SPAN>,<SPAN class=Type>BufRead</SPAN> *.\(txt\)\@! <SPAN class=Statement>inoremap</SPAN> ' ''<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>:let leavechar="'"<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>i

<SPAN class=Statement>imap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>m-l</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>:exec "normal f" . leavechar<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>a
<SPAN class=Statement>imap</SPAN> &lt;d-l&gt; <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>:exec "normal f" . leavechar<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>a


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="General Abbrevs">General Abbrevs</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"My information</SPAN>
<SPAN class=Statement>iab</SPAN> xdate <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Identifier>strftime</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"%d/%m/%y %H:%M:%S"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>iab</SPAN> xname Amir Salihefendic


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="Editing mappings etc.">Editing mappings etc.</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"Remap VIM 0</SPAN>
<SPAN class=Statement>map</SPAN> 0 ^

<SPAN class=Comment>"Move a line of text using control</SPAN>
<SPAN class=Statement>nmap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>M-j</SPAN><SPAN class=Special>&gt;</SPAN> mz:m+<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>`z
<SPAN class=Statement>nmap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>M-k</SPAN><SPAN class=Special>&gt;</SPAN> mz:m-2<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>`z
<SPAN class=Statement>vmap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>M-j</SPAN><SPAN class=Special>&gt;</SPAN> :m'&gt;+<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>`&lt;my`&gt;mzgv`yo`z
<SPAN class=Statement>vmap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>M-k</SPAN><SPAN class=Special>&gt;</SPAN> :m'&lt;-2<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>`&gt;my`&lt;mzgv`yo`z

<SPAN class=Statement>if</SPAN> <SPAN class=Normal>MySys</SPAN><SPAN class=Statement>()</SPAN> <SPAN class=Statement>==</SPAN> <SPAN class=Constant>"mac"</SPAN>
  <SPAN class=Statement>nmap</SPAN> &lt;D-j&gt; <SPAN class=Special>&lt;</SPAN><SPAN class=Special>M-j</SPAN><SPAN class=Special>&gt;</SPAN>
  <SPAN class=Statement>nmap</SPAN> &lt;D-k&gt; <SPAN class=Special>&lt;</SPAN><SPAN class=Special>M-k</SPAN><SPAN class=Special>&gt;</SPAN>
  <SPAN class=Statement>vmap</SPAN> &lt;D-j&gt; <SPAN class=Special>&lt;</SPAN><SPAN class=Special>M-j</SPAN><SPAN class=Special>&gt;</SPAN>
  <SPAN class=Statement>vmap</SPAN> &lt;D-k&gt; <SPAN class=Special>&lt;</SPAN><SPAN class=Special>M-k</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>endif</SPAN>

<SPAN class=Statement>func</SPAN>! DeleteTrailingWS<SPAN class=Statement>()</SPAN>
  <SPAN class=Statement>exe</SPAN> <SPAN class=Constant>"normal mz"</SPAN>
  <SPAN class=Number>%</SPAN><SPAN class=Statement>s</SPAN><SPAN class=Special>/</SPAN>\s\+$<SPAN class=Special>//</SPAN><SPAN class=Special>ge</SPAN>
  <SPAN class=Statement>exe</SPAN> <SPAN class=Constant>"normal `z"</SPAN>
<SPAN class=Statement>endfunc</SPAN>
<SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>BufWrite</SPAN> *.py :<SPAN class=Statement>call</SPAN> <SPAN class=Normal>DeleteTrailingWS</SPAN><SPAN class=Statement>()</SPAN>

<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>completeopt</SPAN>=menu

<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="Command-line config">Command-line config</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Statement>func</SPAN>! Cwd<SPAN class=Statement>()</SPAN>
  <SPAN class=Statement>let</SPAN> cwd <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>getcwd</SPAN><SPAN class=Statement>()</SPAN>
  <SPAN class=Statement>return</SPAN> <SPAN class=LineNr>"e </SPAN><SPAN class=Comment>" . cwd </SPAN>
<SPAN class=Statement>endfunc</SPAN>

<SPAN class=Statement>func</SPAN>! DeleteTillSlash<SPAN class=Statement>()</SPAN>
  <SPAN class=Statement>let</SPAN> g:cmd <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>getcmdline</SPAN><SPAN class=Statement>()</SPAN>
  <SPAN class=Statement>if</SPAN> <SPAN class=Normal>MySys</SPAN><SPAN class=Statement>()</SPAN> <SPAN class=Statement>==</SPAN> <SPAN class=Constant>"linux"</SPAN> <SPAN class=Statement>||</SPAN> <SPAN class=Normal>MySys</SPAN><SPAN class=Statement>()</SPAN> <SPAN class=Statement>==</SPAN> <SPAN class=Constant>"mac"</SPAN>
    <SPAN class=Statement>let</SPAN> g:cmd_edited <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>substitute</SPAN><SPAN class=Statement>(</SPAN>g:cmd, <SPAN class=Constant>"</SPAN><SPAN class=Constant>\\</SPAN><SPAN class=Constant>(.*\[/\]</SPAN><SPAN class=Constant>\\</SPAN><SPAN class=Constant>).*"</SPAN>, <SPAN class=Constant>"</SPAN><SPAN class=Constant>\\</SPAN><SPAN class=Constant>1"</SPAN>, <SPAN class=Constant>""</SPAN><SPAN class=Statement>)</SPAN>
  <SPAN class=Statement>else</SPAN>
    <SPAN class=Statement>let</SPAN> g:cmd_edited <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>substitute</SPAN><SPAN class=Statement>(</SPAN>g:cmd, <SPAN class=Constant>"</SPAN><SPAN class=Constant>\\</SPAN><SPAN class=Constant>(.*\[</SPAN><SPAN class=Constant>\\\\</SPAN><SPAN class=Constant>]</SPAN><SPAN class=Constant>\\</SPAN><SPAN class=Constant>).*"</SPAN>, <SPAN class=Constant>"</SPAN><SPAN class=Constant>\\</SPAN><SPAN class=Constant>1"</SPAN>, <SPAN class=Constant>""</SPAN><SPAN class=Statement>)</SPAN>
  <SPAN class=Statement>endif</SPAN>
  <SPAN class=Statement>if</SPAN> g:cmd <SPAN class=Statement>==</SPAN> g:cmd_edited
    <SPAN class=Statement>if</SPAN> <SPAN class=Normal>MySys</SPAN><SPAN class=Statement>()</SPAN> <SPAN class=Statement>==</SPAN> <SPAN class=Constant>"linux"</SPAN> <SPAN class=Statement>||</SPAN> <SPAN class=Normal>MySys</SPAN><SPAN class=Statement>()</SPAN> <SPAN class=Statement>==</SPAN> <SPAN class=Constant>"mac"</SPAN>
      <SPAN class=Statement>let</SPAN> g:cmd_edited <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>substitute</SPAN><SPAN class=Statement>(</SPAN>g:cmd, <SPAN class=Constant>"</SPAN><SPAN class=Constant>\\</SPAN><SPAN class=Constant>(.*\[/\]</SPAN><SPAN class=Constant>\\</SPAN><SPAN class=Constant>).*/"</SPAN>, <SPAN class=Constant>"</SPAN><SPAN class=Constant>\\</SPAN><SPAN class=Constant>1"</SPAN>, <SPAN class=Constant>""</SPAN><SPAN class=Statement>)</SPAN>
    <SPAN class=Statement>else</SPAN>
      <SPAN class=Statement>let</SPAN> g:cmd_edited <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>substitute</SPAN><SPAN class=Statement>(</SPAN>g:cmd, <SPAN class=Constant>"</SPAN><SPAN class=Constant>\\</SPAN><SPAN class=Constant>(.*\[</SPAN><SPAN class=Constant>\\\\</SPAN><SPAN class=Constant>\]</SPAN><SPAN class=Constant>\\</SPAN><SPAN class=Constant>).*\[</SPAN><SPAN class=Constant>\\\\</SPAN><SPAN class=Constant>\]"</SPAN>, <SPAN class=Constant>"</SPAN><SPAN class=Constant>\\</SPAN><SPAN class=Constant>1"</SPAN>, <SPAN class=Constant>""</SPAN><SPAN class=Statement>)</SPAN>
    <SPAN class=Statement>endif</SPAN>
  <SPAN class=Statement>endif</SPAN>
  <SPAN class=Statement>return</SPAN> g:cmd_edited
<SPAN class=Statement>endfunc</SPAN>

<SPAN class=Statement>func</SPAN>! CurrentFileDir<SPAN class=Statement>(</SPAN>cmd<SPAN class=Statement>)</SPAN>
  <SPAN class=Statement>return</SPAN> a:cmd <SPAN class=Statement>.</SPAN> <SPAN class=Constant>" "</SPAN> <SPAN class=Statement>.</SPAN> <SPAN class=Identifier>expand</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"%:p:h"</SPAN><SPAN class=Statement>)</SPAN> <SPAN class=Statement>.</SPAN> <SPAN class=Constant>"/"</SPAN>
<SPAN class=Statement>endfunc</SPAN>

<SPAN class=Comment>"Smart mappings on the command line</SPAN>
<SPAN class=Statement>cno</SPAN> $h e ~/
<SPAN class=Statement>cno</SPAN> $d e ~/Desktop/
<SPAN class=Statement>cno</SPAN> $j e ./

<SPAN class=Statement>cno</SPAN> $q <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-</SPAN><SPAN class=Special>\&gt;</SPAN>eDeleteTillSlash()<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Statement>cno</SPAN> $c e <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-</SPAN><SPAN class=Special>\&gt;</SPAN>eCurrentFileDir("e")<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Statement>cno</SPAN> $tc <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-</SPAN><SPAN class=Special>\&gt;</SPAN>eCurrentFileDir("tabnew")<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>cno</SPAN> $th tabnew ~/
<SPAN class=Statement>cno</SPAN> $td tabnew ~/Desktop/

<SPAN class=Comment>"Bash like</SPAN>
<SPAN class=Statement>cnoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-A</SPAN><SPAN class=Special>&gt;</SPAN>    <SPAN class=Special>&lt;</SPAN><SPAN class=Special>Home</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>cnoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-E</SPAN><SPAN class=Special>&gt;</SPAN>    <SPAN class=Special>&lt;</SPAN><SPAN class=Special>End</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>cnoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-K</SPAN><SPAN class=Special>&gt;</SPAN>    <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-U</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="Buffer realted">Buffer realted</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"Fast open a buffer by search for a name</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-q</SPAN><SPAN class=Special>&gt;</SPAN> :sb

<SPAN class=Comment>"Open a dummy buffer for paste</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>q :e ~/buffer<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Comment>"Restore cursor to file position in previous editing session</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>viminfo</SPAN>='10<SPAN class=Statement>,</SPAN>\"100<SPAN class=Statement>,:</SPAN>20<SPAN class=Statement>,</SPAN>%<SPAN class=Statement>,</SPAN>n~/.viminfo
<SPAN class=Statement>au</SPAN> <SPAN class=Type>BufReadPost</SPAN> * <SPAN class=Statement>if</SPAN> <SPAN class=Identifier>line</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"'\""</SPAN><SPAN class=Statement>)</SPAN> <SPAN class=Statement>&gt;</SPAN> <SPAN class=Number>0</SPAN>|<SPAN class=Statement>if</SPAN> <SPAN class=Identifier>line</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"'\""</SPAN><SPAN class=Statement>)</SPAN> <SPAN class=Statement>&lt;=</SPAN> <SPAN class=Identifier>line</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"$"</SPAN><SPAN class=Statement>)</SPAN>|<SPAN class=Statement>exe</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"norm '\""</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Statement>|else</SPAN>|<SPAN class=Statement>exe</SPAN> <SPAN class=Constant>"norm $"</SPAN><SPAN class=Statement>|endif</SPAN>|<SPAN class=Statement>endif</SPAN>

<SPAN class=Comment>" Buffer - reverse everything ... :)</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>F9</SPAN><SPAN class=Special>&gt;</SPAN> ggVGg?

<SPAN class=Comment>" Don't close window, when deleting a buffer</SPAN>
<SPAN class=Statement>command</SPAN>! Bclose <SPAN class=Statement>call</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>SID</SPAN><SPAN class=Special>&gt;</SPAN><SPAN class=Normal>BufcloseCloseIt</SPAN>()

<SPAN class=Statement>function</SPAN>! <SPAN class=Special>&lt;SID&gt;</SPAN>BufcloseCloseIt<SPAN class=Statement>()</SPAN>
   <SPAN class=Statement>let</SPAN> l:currentBufNum <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>bufnr</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"%"</SPAN><SPAN class=Statement>)</SPAN>
   <SPAN class=Statement>let</SPAN> l:alternateBufNum <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>bufnr</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"#"</SPAN><SPAN class=Statement>)</SPAN>

   <SPAN class=Statement>if</SPAN> <SPAN class=Identifier>buflisted</SPAN><SPAN class=Statement>(</SPAN>l:alternateBufNum<SPAN class=Statement>)</SPAN>
     <SPAN class=Statement>buffer</SPAN> #
   <SPAN class=Statement>else</SPAN>
     <SPAN class=Statement>bnext</SPAN>
   <SPAN class=Statement>endif</SPAN>

   <SPAN class=Statement>if</SPAN> <SPAN class=Identifier>bufnr</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"%"</SPAN><SPAN class=Statement>)</SPAN> <SPAN class=Statement>==</SPAN> l:currentBufNum
     <SPAN class=Statement>new</SPAN>
   <SPAN class=Statement>endif</SPAN>

   <SPAN class=Statement>if</SPAN> <SPAN class=Identifier>buflisted</SPAN><SPAN class=Statement>(</SPAN>l:currentBufNum<SPAN class=Statement>)</SPAN>
     <SPAN class=Statement>execute</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"bdelete! "</SPAN><SPAN class=Statement>.</SPAN>l:currentBufNum<SPAN class=Statement>)</SPAN>
   <SPAN class=Statement>endif</SPAN>
<SPAN class=Statement>endfunction</SPAN>


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="Files and backups">Files and backups</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"Turn backup off</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>nobackup</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>nowb</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>noswapfile</SPAN>


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name=Folding>Folding</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"Enable folding, I find it very useful</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>nofen</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>fdl</SPAN>=0


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="Text options">Text options</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>expandtab</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>shiftwidth</SPAN>=2

<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>t2 :set shiftwidth=2<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>t4 :set shiftwidth=4<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> html,python,vim,javascript <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>shiftwidth</SPAN>=2
<SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> html,python,vim,javascript <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>tabstop</SPAN>=2
<SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>shiftwidth</SPAN>=4
<SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>tabstop</SPAN>=4

<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>smarttab</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>lbr</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>tw</SPAN>=500

<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name=Indent>Indent</A></SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   "Auto indent</SPAN>
   <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>ai</SPAN>

<SPAN class=Comment>   "Smart indet</SPAN>
   <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>si</SPAN>

<SPAN class=Comment>   "C-style indeting</SPAN>
   <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>cindent</SPAN>

<SPAN class=Comment>   "Wrap lines</SPAN>
   <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>wrap</SPAN>


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="Spell checking">Spell checking</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>sn ]s
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>sp [s
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>sa zg
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>s? z=


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="Plugin configuration">Plugin configuration</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="Vim Grep">Vim Grep</A></SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>let</SPAN> Grep_Skip_Dirs <SPAN class=Statement>=</SPAN> <SPAN class=Constant>'RCS CVS SCCS .svn'</SPAN>
   <SPAN class=Statement>let</SPAN> Grep_Cygwin_Find <SPAN class=Statement>=</SPAN> <SPAN class=Number>1</SPAN>

<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="Yank Ring">Yank Ring</A></SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>y :YRShow<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="File explorer">File explorer</A></SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   "Split vertically</SPAN>
   <SPAN class=Statement>let</SPAN> g:explVertical<SPAN class=Statement>=</SPAN><SPAN class=Number>1</SPAN>

<SPAN class=Comment>   "Window size</SPAN>
   <SPAN class=Statement>let</SPAN> g:explWinSize<SPAN class=Statement>=</SPAN><SPAN class=Number>35</SPAN>

   <SPAN class=Statement>let</SPAN> g:explSplitLeft<SPAN class=Statement>=</SPAN><SPAN class=Number>1</SPAN>
   <SPAN class=Statement>let</SPAN> g:explSplitBelow<SPAN class=Statement>=</SPAN><SPAN class=Number>1</SPAN>

<SPAN class=Comment>   "Hide some files</SPAN>
   <SPAN class=Statement>let</SPAN> g:explHideFiles<SPAN class=Statement>=</SPAN><SPAN class=Constant>'^\.,.*\.class$,.*\.swp$,.*\.pyc$,.*\.swo$,\.DS_Store$'</SPAN>

<SPAN class=Comment>   "Hide the help thing..</SPAN>
   <SPAN class=Statement>let</SPAN> g:explDetailedHelp<SPAN class=Statement>=</SPAN><SPAN class=Number>0</SPAN>


<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name=Minibuffer>Minibuffer</A></SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>let</SPAN> g:miniBufExplModSelTarget <SPAN class=Statement>=</SPAN> <SPAN class=Number>1</SPAN>
   <SPAN class=Statement>let</SPAN> g:miniBufExplorerMoreThanOne <SPAN class=Statement>=</SPAN> <SPAN class=Number>2</SPAN>
   <SPAN class=Statement>let</SPAN> g:miniBufExplModSelTarget <SPAN class=Statement>=</SPAN> <SPAN class=Number>0</SPAN>
   <SPAN class=Statement>let</SPAN> g:miniBufExplUseSingleClick <SPAN class=Statement>=</SPAN> <SPAN class=Number>1</SPAN>
   <SPAN class=Statement>let</SPAN> g:miniBufExplMapWindowNavVim <SPAN class=Statement>=</SPAN> <SPAN class=Number>1</SPAN>
   <SPAN class=Statement>let</SPAN> g:miniBufExplVSplit <SPAN class=Statement>=</SPAN> <SPAN class=Number>25</SPAN>
   <SPAN class=Statement>let</SPAN> g:miniBufExplSplitBelow<SPAN class=Statement>=</SPAN><SPAN class=Number>1</SPAN>

   <SPAN class=Statement>let</SPAN> g:bufExplorerSortBy <SPAN class=Statement>=</SPAN> <SPAN class=Constant>"name"</SPAN>

   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>BufRead</SPAN>,<SPAN class=Type>BufNew</SPAN> :call UMiniBufExplorer


<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="Tag list (ctags) - not used">Tag list (ctags) - not used</A></SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   "let Tlist_Ctags_Cmd = </SPAN><SPAN class=Constant>"/sw/bin/ctags-exuberant"</SPAN>
<SPAN class=Comment>   "let Tlist_Sort_Type = </SPAN><SPAN class=Constant>"name"</SPAN>
<SPAN class=Comment>   "let Tlist_Show_Menu = 1</SPAN>
<SPAN class=Comment>   "map &lt;leader&gt;t :Tlist&lt;cr&gt;</SPAN>


<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="LaTeX Suite things">LaTeX Suite things</A></SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>grepprg</SPAN>=grep\ -nH\ $*
   <SPAN class=Statement>let</SPAN> g:Tex_DefaultTargetFormat<SPAN class=Statement>=</SPAN><SPAN class=Constant>"pdf"</SPAN>
   <SPAN class=Statement>let</SPAN> g:Tex_ViewRule_pdf<SPAN class=Statement>=</SPAN><SPAN class=Constant>'xpdf'</SPAN>

<SPAN class=Comment>   "Bindings</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> tex <SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>silent</SPAN><SPAN class=Special>&gt;&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>space</SPAN><SPAN class=Special>&gt;</SPAN> :w!<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN> :silent! call Tex_RunLaTeX()<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Comment>   "Auto complete some things ;)</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> tex <SPAN class=Statement>inoremap</SPAN> $i \indent
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> tex <SPAN class=Statement>inoremap</SPAN> $* \cdot
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> tex <SPAN class=Statement>inoremap</SPAN> $i \item
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> tex <SPAN class=Statement>inoremap</SPAN> $m \[<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>\]<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>O


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name="Filetype generic">Filetype generic</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name=Todo>Todo</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>BufNewFile</SPAN>,<SPAN class=Type>BufRead</SPAN> *.todo <SPAN class=Statement>so</SPAN> ~/vim_local/<SPAN class=Statement>syntax</SPAN>/amido<SPAN class=Statement>.</SPAN><SPAN class=Statement>vim</SPAN>

<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name=VIM>VIM</A></SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> vim <SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>space</SPAN><SPAN class=Special>&gt;</SPAN> :w!<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>:source %<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="HTML related">HTML related</A></SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " HTML entities - used by xml edit plugin</SPAN>
   <SPAN class=Statement>let</SPAN> xml_use_xhtml <SPAN class=Statement>=</SPAN> <SPAN class=Number>1</SPAN>
<SPAN class=Comment>   "let xml_no_auto_nesting = 1</SPAN>

<SPAN class=Comment>   "To HTML</SPAN>
   <SPAN class=Statement>let</SPAN> html_use_css <SPAN class=Statement>=</SPAN> <SPAN class=Number>1</SPAN>
   <SPAN class=Statement>let</SPAN> html_number_lines <SPAN class=Statement>=</SPAN> <SPAN class=Number>0</SPAN>
   <SPAN class=Statement>let</SPAN> use_xhtml <SPAN class=Statement>=</SPAN> <SPAN class=Number>1</SPAN>


<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="Ruby &amp; PHP section">Ruby &amp; PHP section</A></SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> ruby <SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>space</SPAN><SPAN class=Special>&gt;</SPAN> :w!<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>:!ruby %<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> php <SPAN class=Statement>compiler</SPAN> php
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> php <SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>space</SPAN><SPAN class=Special>&gt;</SPAN> &lt;leader&gt;cd:w<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>:make %<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="Python section">Python section</A></SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   "Run the current buffer in python - ie. on leader+space</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>so</SPAN> ~/vim_local/<SPAN class=Statement>syntax</SPAN>/<SPAN class=Statement>python</SPAN><SPAN class=Statement>.</SPAN><SPAN class=Statement>vim</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>space</SPAN><SPAN class=Special>&gt;</SPAN> :w!<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>:!python %<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>so</SPAN> ~/vim_local/plugin/python_fold<SPAN class=Statement>.</SPAN><SPAN class=Statement>vim</SPAN>

<SPAN class=Comment>   "Set some bindings up for 'compile' of python</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>set</SPAN> makeprg<SPAN class=Statement>=</SPAN><SPAN class=Statement>python</SPAN>\ <SPAN class=Statement>-</SPAN><SPAN class=Statement>c</SPAN>\ \"import\ py_compile,sys;\ sys<SPAN class=Statement>.</SPAN>stderr<SPAN class=Statement>=</SPAN>sys<SPAN class=Statement>.</SPAN>stdout;\ py_compile<SPAN class=Statement>.</SPAN><SPAN class=Statement>compile</SPAN><SPAN class=Statement>(</SPAN>r'%<SPAN class=Constant>'</SPAN><SPAN class=Statement>)</SPAN>\"
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>efm</SPAN>=%C\ %.%#<SPAN class=Statement>,</SPAN>%A\ \ File\ \"%f\"\\<SPAN class=Statement>,</SPAN>\ line\ %l%.%#<SPAN class=Statement>,</SPAN>%Z%[%^\ ]%\\@=%m

<SPAN class=Comment>   "Python iMaps</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>cindent</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $r return
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $s self
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $c ##<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>#<SPAN class=Special>&lt;</SPAN><SPAN class=Special>space</SPAN><SPAN class=Special>&gt;&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>#<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>kla
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $i import
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $p print
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $d """<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>"""<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>O

<SPAN class=Comment>   "Run in the Python interpreter</SPAN>
   <SPAN class=Statement>function</SPAN>! Python_Eval_VSplit<SPAN class=Statement>()</SPAN> range
     <SPAN class=Statement>let</SPAN> src <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>tempname</SPAN><SPAN class=Statement>()</SPAN>
     <SPAN class=Statement>let</SPAN> dst <SPAN class=Statement>=</SPAN> <SPAN class=Identifier>tempname</SPAN><SPAN class=Statement>()</SPAN>
     <SPAN class=Statement>execute</SPAN> <SPAN class=Constant>": "</SPAN> <SPAN class=Statement>.</SPAN> a:firstline <SPAN class=Statement>.</SPAN> <SPAN class=Constant>","</SPAN> <SPAN class=Statement>.</SPAN> a:lastline <SPAN class=Statement>.</SPAN> <SPAN class=Constant>"w "</SPAN> <SPAN class=Statement>.</SPAN> src
     <SPAN class=Statement>execute</SPAN> <SPAN class=Constant>":!python "</SPAN> <SPAN class=Statement>.</SPAN> src <SPAN class=Statement>.</SPAN> <SPAN class=Constant>" &gt; "</SPAN> <SPAN class=Statement>.</SPAN> dst
     <SPAN class=Statement>execute</SPAN> <SPAN class=Constant>":pedit! "</SPAN> <SPAN class=Statement>.</SPAN> dst
   <SPAN class=Statement>endfunction</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>vmap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>F7</SPAN><SPAN class=Special>&gt;</SPAN> :call Python_Eval_VSplit()<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="Cheetah section">Cheetah section</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> cheetah <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>ft</SPAN>=xml
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> cheetah <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>syntax</SPAN>=cheetah

<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="Vim section">Vim section</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> vim <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>nofen</SPAN>

<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="Java section">Java section</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-t</SPAN><SPAN class=Special>&gt;</SPAN> System.out.println();<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>hi

<SPAN class=Comment>   "Java comments</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>source</SPAN> ~/vim_local/macros/jcommenter<SPAN class=Statement>.</SPAN><SPAN class=Statement>vim</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>let</SPAN> b:jcommenter_class_author<SPAN class=Statement>=</SPAN><SPAN class=Constant>'Amir Salihefendic (amix@amix.dk)'</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>let</SPAN> b:jcommenter_file_author<SPAN class=Statement>=</SPAN><SPAN class=Constant>'Amir Salihefendic (amix@amix.dk)'</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>F2</SPAN><SPAN class=Special>&gt;</SPAN> :call JCommentWriter()<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Comment>   "Abbr'z</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $pr private
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $r return
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $pu public
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $i import
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $b boolean
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $v void
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $s String

<SPAN class=Comment>   "Folding</SPAN>
   <SPAN class=Statement>function</SPAN>! JavaFold<SPAN class=Statement>()</SPAN>
     <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>foldmethod</SPAN>=syntax
     <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>foldlevelstart</SPAN>=1
     <SPAN class=Statement>syn</SPAN> <SPAN class=Type>region</SPAN> foldBraces <SPAN class=Type>start</SPAN>=<SPAN class=Constant>/{/</SPAN> <SPAN class=Type>end</SPAN>=<SPAN class=Constant>/}/</SPAN> <SPAN class=Special>transparent</SPAN> <SPAN class=Special>fold</SPAN> <SPAN class=Special>keepend</SPAN> <SPAN class=Special>extend</SPAN>
     <SPAN class=Statement>syn</SPAN> <SPAN class=Type>match</SPAN> foldImports <SPAN class=Constant>/</SPAN><SPAN class=LineNr>\(</SPAN><SPAN class=Constant>\n\?import.\+;\n</SPAN><SPAN class=LineNr>\)</SPAN><SPAN class=Constant>\+/</SPAN> <SPAN class=Special>transparent</SPAN> <SPAN class=Special>fold</SPAN>

     <SPAN class=Statement>function</SPAN>! FoldText<SPAN class=Statement>()</SPAN>
       <SPAN class=Statement>return</SPAN> <SPAN class=Identifier>substitute</SPAN><SPAN class=Statement>(</SPAN>getline<SPAN class=Statement>(</SPAN>v:foldstart<SPAN class=Statement>)</SPAN>, <SPAN class=Constant>'{.*'</SPAN>, <SPAN class=Constant>'{...}'</SPAN>, <SPAN class=Constant>''</SPAN><SPAN class=Statement>)</SPAN>
     <SPAN class=Statement>endfunction</SPAN>
     <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>foldtext</SPAN>=FoldText()
   <SPAN class=Statement>endfunction</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>call</SPAN> <SPAN class=Normal>JavaFold</SPAN><SPAN class=Statement>()</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>fen</SPAN>

   <SPAN class=Statement>au</SPAN> <SPAN class=Type>BufEnter</SPAN> *.sablecc,*.scc <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>ft</SPAN>=sablecc

<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="JavaScript section">JavaScript section</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> javascript <SPAN class=Statement>so</SPAN> ~/vim_local/<SPAN class=Statement>syntax</SPAN>/javascript<SPAN class=Statement>.</SPAN><SPAN class=Statement>vim</SPAN>
   <SPAN class=Statement>function</SPAN>! JavaScriptFold<SPAN class=Statement>()</SPAN>
     <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>foldmethod</SPAN>=syntax
     <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>foldlevelstart</SPAN>=1
     <SPAN class=Statement>syn</SPAN> <SPAN class=Type>region</SPAN> foldBraces <SPAN class=Type>start</SPAN>=<SPAN class=Constant>/{/</SPAN> <SPAN class=Type>end</SPAN>=<SPAN class=Constant>/}/</SPAN> <SPAN class=Special>transparent</SPAN> <SPAN class=Special>fold</SPAN> <SPAN class=Special>keepend</SPAN> <SPAN class=Special>extend</SPAN>

     <SPAN class=Statement>function</SPAN>! FoldText<SPAN class=Statement>()</SPAN>
       <SPAN class=Statement>return</SPAN> <SPAN class=Identifier>substitute</SPAN><SPAN class=Statement>(</SPAN>getline<SPAN class=Statement>(</SPAN>v:foldstart<SPAN class=Statement>)</SPAN>, <SPAN class=Constant>'{.*'</SPAN>, <SPAN class=Constant>'{...}'</SPAN>, <SPAN class=Constant>''</SPAN><SPAN class=Statement>)</SPAN>
     <SPAN class=Statement>endfunction</SPAN>
     <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>foldtext</SPAN>=FoldText()
   <SPAN class=Statement>endfunction</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> javascript <SPAN class=Statement>call</SPAN> <SPAN class=Normal>JavaScriptFold</SPAN><SPAN class=Statement>()</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> javascript <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>fen</SPAN>

   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> javascript <SPAN class=Statement>imap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-t</SPAN><SPAN class=Special>&gt;</SPAN> console.log();<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>hi
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> javascript <SPAN class=Statement>imap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-a</SPAN><SPAN class=Special>&gt;</SPAN> alert();<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>hi
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> javascript <SPAN class=Statement>setl</SPAN> <SPAN class=PreProc>nocindent</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> javascript <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $r return

   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> javascript <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $d //<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>//<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>//<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>ka<SPAN class=Special>&lt;</SPAN><SPAN class=Special>space</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> javascript <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> $c /**<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;&lt;</SPAN><SPAN class=Special>space</SPAN><SPAN class=Special>&gt;&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>**/<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>ka


<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name=HTML>HTML</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> html,cheetah <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>ft</SPAN>=xml
   <SPAN class=Statement>au</SPAN> <SPAN class=Type>FileType</SPAN> html,cheetah <SPAN class=Statement>set</SPAN> <SPAN class=PreProc>syntax</SPAN>=html


<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="C mappings">C mappings</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> c <SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>space</SPAN><SPAN class=Special>&gt;</SPAN> :w<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>:!gcc %<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name=SML>SML</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> sml <SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>silent</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>space</SPAN><SPAN class=Special>&gt;</SPAN> &lt;leader&gt;cd:w<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>:!sml %<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="Scheme bidings">Scheme bidings</A></SPAN>
<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>BufNewFile</SPAN>,<SPAN class=Type>BufRead</SPAN> *.scm <SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>space</SPAN><SPAN class=Special>&gt;</SPAN> &lt;leader&gt;cd:w<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>:!petite %<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>BufNewFile</SPAN>,<SPAN class=Type>BufRead</SPAN> *.scm <SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>buffer</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-t</SPAN><SPAN class=Special>&gt;</SPAN> (pretty-print )<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>i
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>BufNewFile</SPAN>,<SPAN class=Type>BufRead</SPAN> *.scm <SPAN class=Statement>vnoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-t</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&gt;a)<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>`&lt;i(pretty-print <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>   """"""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name="SVN section">SVN section</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>F8</SPAN><SPAN class=Special>&gt;</SPAN> :new<SPAN class=Special>&lt;</SPAN><SPAN class=Special>CR</SPAN><SPAN class=Special>&gt;</SPAN>:read !svn diff<SPAN class=Special>&lt;</SPAN><SPAN class=Special>CR</SPAN><SPAN class=Special>&gt;</SPAN>:set syntax=diff buftype=nofile<SPAN class=Special>&lt;</SPAN><SPAN class=Special>CR</SPAN><SPAN class=Special>&gt;</SPAN>gg


<SPAN class=Comment>""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name=Snippets>Snippets</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   "You can use &lt;c-j&gt; to goto the next &lt;++&gt; - it is pretty smart ;)</SPAN>

<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name=Python>Python</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cfun <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"def &lt;++&gt;(&lt;++&gt;):\n&lt;++&gt;\nreturn &lt;++&gt;"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cclass <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"class &lt;++&gt;:\n&lt;++&gt;"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cfor <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"for &lt;++&gt; in &lt;++&gt;:\n&lt;++&gt;"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cif <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"if &lt;++&gt;:\n&lt;++&gt;"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> python <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cifelse <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"if &lt;++&gt;:\n&lt;++&gt;\nelse:\n&lt;++&gt;"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name=JavaScript>JavaScript</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> cheetah,html,javascript <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cfun <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"function &lt;++&gt;(&lt;++&gt;) {\n&lt;++&gt;;\nreturn &lt;++&gt;;\n}"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>filetype</SPAN> cheetah,html,javascript <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cfor <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"for(&lt;++&gt;; &lt;++&gt;; &lt;++&gt;) {\n&lt;++&gt;;\n}"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> cheetah,html,javascript <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cif <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"if(&lt;++&gt;) {\n&lt;++&gt;;\n}"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> cheetah,html,javascript <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cifelse <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"if(&lt;++&gt;) {\n&lt;++&gt;;\n}\nelse {\n&lt;++&gt;;\n}"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name=HTML>HTML</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> cheetah,html <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cahref <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>'&lt;a href="&lt;++&gt;"&gt;&lt;++&gt;&lt;/a&gt;'</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> cheetah,html <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cbold <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>'&lt;b&gt;&lt;++&gt;&lt;/b&gt;'</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> cheetah,html <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cimg <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>'&lt;img src="&lt;++&gt;" alt="&lt;++&gt;" /&gt;'</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> cheetah,html <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cpara <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>'&lt;p&gt;&lt;++&gt;&lt;/p&gt;'</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> cheetah,html <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> ctag <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>'&lt;&lt;++&gt;&gt;&lt;++&gt;&lt;/&lt;++&gt;&gt;'</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> cheetah,html <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> ctag1 <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"&lt;&lt;++&gt;&gt;&lt;cr&gt;&lt;++&gt;&lt;cr&gt;&lt;/&lt;++&gt;&gt;"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>   " <A style="COLOR: #fff" name=Java>Java</A></SPAN>
<SPAN class=Comment>   """""""""""""""""""""""""""""""</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cfun <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"public&lt;++&gt; &lt;++&gt;(&lt;++&gt;) {\n&lt;++&gt;;\nreturn &lt;++&gt;;\n}"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cfunpr <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"private&lt;++&gt; &lt;++&gt;(&lt;++&gt;) {\n&lt;++&gt;;\nreturn &lt;++&gt;;\n}"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cfor <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"for(&lt;++&gt;; &lt;++&gt;; &lt;++&gt;) {\n&lt;++&gt;;\n}"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cif <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"if(&lt;++&gt;) {\n&lt;++&gt;;\n}"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cifelse <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"if(&lt;++&gt;) {\n&lt;++&gt;;\n}\nelse {\n&lt;++&gt;;\n}"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cclass <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"class &lt;++&gt; &lt;++&gt; {\n&lt;++&gt;\n}"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
   <SPAN class=Statement>autocmd</SPAN> <SPAN class=Type>FileType</SPAN> java <SPAN class=Statement>inorea</SPAN> <SPAN class=Statement>&lt;</SPAN><SPAN class=Statement>buffer</SPAN><SPAN class=Statement>&gt;</SPAN> cmain <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-r</SPAN><SPAN class=Special>&gt;</SPAN>=<SPAN class=Normal>IMAP_PutTextWithMovement</SPAN><SPAN class=Statement>(</SPAN><SPAN class=Constant>"public static void main(String[] argv) {\n&lt;++&gt;\n}"</SPAN><SPAN class=Statement>)</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>   "Presse c-q insted of space (or other key) to complete the snippet</SPAN>
   <SPAN class=Statement>imap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-q</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-]</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name=Cope>Cope</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"For Cope</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>silent</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN><SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN> :noh<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Comment>"Orginal for all</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>n :cn<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>p :cp<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>leader</SPAN><SPAN class=Special>&gt;</SPAN>c :botright cw 10<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-u</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>c-l</SPAN><SPAN class=Special>&gt;&lt;</SPAN><SPAN class=Special>c-j</SPAN><SPAN class=Special>&gt;</SPAN>:q<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>:botright cw 10<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>


<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name=MISC>MISC</A></SPAN>
<SPAN class=Comment>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""</SPAN>
<SPAN class=Comment>"Remove the Windows ^M</SPAN>
<SPAN class=Statement>noremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>Leader</SPAN><SPAN class=Special>&gt;</SPAN>m mmHmt:%s/<SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-V</SPAN><SPAN class=Special>&gt;&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>//ge<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>'tzt'm

<SPAN class=Comment>"Paste toggle - when pasting something in, don't indent.</SPAN>
<SPAN class=Statement>set</SPAN> <SPAN class=PreProc>pastetoggle</SPAN>=<SPAN class=Special>&lt;</SPAN><SPAN class=Special>F3</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Comment>"Remove indenting on empty lines</SPAN>
<SPAN class=Statement>map</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>F2</SPAN><SPAN class=Special>&gt;</SPAN> :%s/\s*$//g<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>:noh<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>''

<SPAN class=Comment>"Super paste</SPAN>
<SPAN class=Statement>inoremap</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-v</SPAN><SPAN class=Special>&gt;</SPAN> <SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>:set paste<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>mui<SPAN class=Special>&lt;</SPAN><SPAN class=Special>C-R</SPAN><SPAN class=Special>&gt;</SPAN>+<SPAN class=Special>&lt;</SPAN><SPAN class=Special>esc</SPAN><SPAN class=Special>&gt;</SPAN>mv'uV'v=:set nopaste<SPAN class=Special>&lt;</SPAN><SPAN class=Special>cr</SPAN><SPAN class=Special>&gt;</SPAN>

<SPAN class=Comment>"A function that inserts links &amp; anchors on a TOhtml export.</SPAN>
<SPAN class=Comment>"</SPAN> <SPAN class=PreProc>Notice:</SPAN>
<SPAN class=Comment>" Syntax used is:</SPAN>
<SPAN class=Comment>" <A style="COLOR: cyan" href="http://amix.dk/vim/vimrc.html#Link">Link</A></SPAN>
<SPAN class=Comment>" <A style="COLOR: #fff" name=Anchor>Anchor</A></SPAN>
<SPAN class=Statement>function</SPAN>! SmartTOHtml<SPAN class=Statement>()</SPAN>
   TOhtml
   <SPAN class=Statement>try</SPAN>
    <SPAN class=Number>%</SPAN><SPAN class=Statement>s</SPAN><SPAN class=Special>/</SPAN>&amp;quot;\s\+\*&amp;gt; <SPAN class=LineNr>\(</SPAN>.\+<SPAN class=LineNr>\)</SPAN>&lt;<SPAN class=Special>/</SPAN>" &lt;a href="#<SPAN class=LineNr>\1</SPAN>" style="color: cyan"&gt;<SPAN class=LineNr>\1</SPAN>&lt;\/a&gt;&lt;<SPAN class=Special>/</SPAN><SPAN class=Special>g</SPAN>
    <SPAN class=Number>%</SPAN><SPAN class=Statement>s</SPAN><SPAN class=Special>/</SPAN>&amp;quot;<SPAN class=LineNr>\(</SPAN>-<SPAN class=LineNr>\|</SPAN>\s<SPAN class=LineNr>\)</SPAN>\+\*&amp;gt; <SPAN class=LineNr>\(</SPAN>.\+<SPAN class=LineNr>\)</SPAN>&lt;<SPAN class=Special>/</SPAN>" \&amp;nbsp;\&amp;nbsp; &lt;a href="#<SPAN class=LineNr>\2</SPAN>" style="color: cyan;"&gt;<SPAN class=LineNr>\2</SPAN>&lt;\/a&gt;&lt;<SPAN class=Special>/</SPAN><SPAN class=Special>g</SPAN>
    <SPAN class=Number>%</SPAN><SPAN class=Statement>s</SPAN><SPAN class=Special>/</SPAN>&amp;quot;\s\+=&amp;gt; <SPAN class=LineNr>\(</SPAN>.\+<SPAN class=LineNr>\)</SPAN>&lt;<SPAN class=Special>/</SPAN>" &lt;a name="<SPAN class=LineNr>\1</SPAN>" style="color: #fff"&gt;<SPAN class=LineNr>\1</SPAN>&lt;\/a&gt;&lt;<SPAN class=Special>/</SPAN><SPAN class=Special>g</SPAN>
   <SPAN class=Statement>catch</SPAN>
   <SPAN class=Statement>endtry</SPAN>
   <SPAN class=Statement>exe</SPAN> <SPAN class=Constant>":write!"</SPAN>
   <SPAN class=Statement>exe</SPAN> <SPAN class=Constant>":bd"</SPAN>
<SPAN class=Statement>endfunction</SPAN>
</PRE>
<P></P></BODY></HTML>
